package com.wq.myspring.factory;

import org.springframework.beans.factory.FactoryBean;

/**
 * @PackageName: com.wq.myspring.factorytest
 * @ClassName FooFactoryBean
 * @Description: TODO 实现spring的 FactoryBean
 * @Author Wenqiang
 * @Date 2021/07/17 5:29
 * @Version V1.0
 */
public class FooFactoryBean implements FactoryBean<Foo> {

	@Override
	public Foo getObject() throws Exception {
		return new Foo();
	}

	@Override
	public Class<?> getObjectType() {
		return Foo.class;
	}
}
